package com.alibaba.algo.exception;

import lombok.Getter;

/**
 * @author Fan.tianpeng
 * @date 2021/4/30 12:29
 */
@Getter
public enum SysUserErrorCode {
    USER_ACCOUNT_REPEAT(20600, "用户账号已被占用"),
    USER_MOBILE_PHONE_REPEAT(20601, "用户手机号已被占用"),
    MISSING_REQUIRED_FIELD(20602, "必填字段缺失"),
    PASS_WD_LOST(20603, "密码不能为空"),
    ACCOUNT_OR_PASSWORD_ERROR(20604, "用户名或密码错误"),
    USER_IS_NOT_EXIST(20605, "用户不存在"),
    USER_IS_NOT_GROUP(20606, "用户在钉钉组织中不存在"),
    USER_IS_NOT_LOGIN(20607, "用户未登录"),
    PASS_WD_PARSE_ERROR(20608, "密码解析错误"),
    USER_ID_OR_XXL_SSO_SESSIONID_IS_NULL(20609, "userId或xxlSsoSessionid为空"),
    ;

    private Integer code;

    private String message;

    SysUserErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
